Next | Prev | Up | Top | Contents | Index

Setting Terminal Options

The TTY system described thus far establishes a basic style of communication between the user's terminal and the IRIX operating system. Once a user has successfully logged in, he or she may prefer terminal options other than the default set.

The stty command controls terminal options. Many users add an stty command to their .profile or .login file so the options they want are automatically set as part of the login process. Here is an example of a simple stty command:

stty cr0 nl0 echoe -tabs erase '^H'

The options in the example mean:

cr0 nl0

No delay for carriage return or new line. Delays are not used on a video display terminal, but are necessary on some printing terminals to allow time for the mechanical parts of the equipment to move.

echoe

Erases characters as you backspace.

-tabs

Expand tabs to spaces when printing.

erase '^H'

Change the character-delete character to a Ctrl-H. The default character-delete character is the pound sign (#). Most terminals transmit a Ctrl-H when the <Backspace> key is pressed. Specifying this option makes <Backspace> delete the character that was just typed.

Next | Prev | Up | Top | Contents | Index